package com.fucking.great.servlert;

import javax.servlet.ServletInputStream;
import java.io.ByteArrayInputStream;
import java.io.IOException;

public class DelegatingServletInputStream extends ServletInputStream {
    final ByteArrayInputStream byteArrayInputStream;
    public DelegatingServletInputStream(ByteArrayInputStream byteArrayInputStream) {
        this.byteArrayInputStream = byteArrayInputStream;
    }
    @Override
    public int read() throws IOException {
        return byteArrayInputStream.read();
    }
}
